x86/shadow: fix DO_UNSHADOW()
authorJan Beulich <jbeulich@suse.com>
Tue, 25 May 2021 07:08:43 +0000 (09:08 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 25 May 2021 07:08:43 +0000 (09:08 +0200)
commit81acb1d7bdd5b1bf9c3422dcfeda616db2405d6f
tree942ef082c9b1113231800a41637d6fd476dfa00d
parentaa77acc28098d04945af998f3fc0dbd3759b5b41
x86/shadow: fix DO_UNSHADOW()

When adding the HASH_CALLBACKS_CHECK() I failed to properly recognize
the (somewhat unusually formatted) if() around the call to
hash_domain_foreach()). Gcc 11 is absolutely right in pointing out the
apparently misleading indentation. Besides adding the missing braces,
also adjust the two oddly formatted if()-s in the macro.

Fixes: 90629587e16e ("x86/shadow: replace stale literal numbers in hash_{vcpu,domain}_foreach()")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>
Reviewed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/common.c